package com.flying.invest.survey.model;

import com.flying.common.util.Codes;
import com.flying.framework.annotation.Param;
import com.flying.framework.data.Data;
import com.flying.framework.data.DataSerializable;
import com.flying.framework.metadata.Meta;

@SuppressWarnings("serial")
@Meta(id="i_survey_question",title="调查问卷", table="i_survey_question", primaryKeys={"question_id"})
public class Question extends Data implements DataSerializable {
	public final static String ENTITY_NAME = "i_survey_question";
	
	public final static String QUESTION_ID = "question_id";
	public final static String SURVEY_ID = "survey_id";
	public final static String QUESTION = "question";
	public final static String REMARKS = "remarks";
	public final static String ANSWER = "answer";
	
	
	@Param(value=QUESTION_ID,   required=true,   maxlength=0,	desc="问题ID" , generator=Codes.AUTO_INCREMENT)
	private Long questionId;
	
	@Param(value=SURVEY_ID,   required=true,   maxlength=0,	desc="调查ID" )
	private Long surveyId;
	
	@Param(value=QUESTION,   required=true,   maxlength=200,	desc="名称" )
	private String question;
	
	@Param(value=REMARKS,   required=false,   maxlength=400,	desc="说明" )
	private String remarks;
	
	@Param(value=ANSWER,   required=false,   maxlength=400,	desc="说明" )
	private String answer;
	
	
	public Long getQuestionId() {
		return this.questionId;
	}
	
	public void setQuestionId(Long questionId) {
		this.questionId = questionId;
	}
	
	public Long getSurveyId() {
		return this.surveyId;
	}
	
	public void setSurveyId(Long surveyId) {
		this.surveyId = surveyId;
	}
	
	public String getQuestion() {
		return this.question;
	}
	
	public void setQuestion(String question) {
		this.question = question;
	}
	
	public String getRemarks() {
		return this.remarks;
	}
	
	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}
	
	public String getAnswer() {
		return this.answer;
	}
	
	public void setAnswer(String answer) {
		this.answer = answer;
	}
	

}